<?php
require("cliente.common.php");
require_once("seguridad.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<title>Modulo de clientes</title>
	<?php $xajax->printJavascript(); ?>
	<script language="javascript">
		   xajax_cliente_listado();		
		</script>
	<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
    </script>
	</head> 
	<body>
	<table>
		<tr>
			<td>
			<img align="left" src="img/logo.jpg" width="188" height="131">
			</td>
		</tr>
		<tr>	
			<td align="left">
				Filtro:<input name="cliente_filtro" type="text" id="cliente_filtro" size="30" value="">
				<input  type="submit" value="Buscar" onclick="xajax_cliente_listado(document.getElementById('cliente_filtro').value)"/>
				&nbsp&nbsp&nbsp&nbsp
			</td>
			<td align="right">
			<input  type="submit" value="Ver listado Clientes " onclick="xajax_cliente_listado(); return false;"/>

			<input  type="submit" value=" Nuevo Cliente " onclick="xajax_cliente_nuevo(); return false;"/>
			</td>
		</tr>
	</table>
	<table>
		<tr>
			<td>
			<div id="contenedor">
			No se han cargado clientes.
			</div>
			</td>
		</tr>
		<tr>
			<td>
			<br>
			<br>	
			<a href="main.php"><input value="Ir al menu principal" type="submit" ></a>
			<a href="pago.php"><input value="Ir a pagos" type="submit" ></a>		
			<a href="presupuesto.php"><input value="Ir a presupuestos" type="submit" ></a>
			</td>
		</tr>
	</table>
	</body> 
</html>